﻿using System.Collections;
using System.Collections.Generic;
using System.IO;
using Codice.Client.Common.GameUI;
using HybridCLR.Editor.Settings;
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEditorInternal;
using UnityEngine;

namespace XFGameFramework.HybridCLR
{
    public class ListenerBuildPackage : IPreprocessBuildWithReport

    {
        public int callbackOrder => -1;

        public void OnPreprocessBuild(BuildReport report)
        { 
            XFHybridCLRSettings.Instance.SyncProjects();

            XFHybridCLRSettings.Instance.SyncHotUpdateSettings();

        }
    }
}


